package com.inspur.icity.bus.base.core.exception;



public class Error {

    private Integer code = 500;
    private String error = "啊哦,服务器开了个小差";

    public Error() {
    }

    public Error(Integer code, String error) {
        this.code = code;
        this.error = error;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    @Override
    public String toString() {
        return "ErrorMessage{" +
                "code=" + code +
                ", error='" + error + '\'' +
                '}';
    }
}
